//
//  BaseUIViewController.swift
//  MyNavigationbar
//
//  Created by teleframe on 15/8/20.
//  Copyright (c) 2015年 tf. All rights reserved.
//

import UIKit

class BaseUIViewController: UIViewController {
    
    
    
    
    func hideNavigationBar(){
        self.navigationController?.navigationBar.setBackgroundImage(UIImage(), forBarMetrics: UIBarMetrics.Default)
        self.navigationController?.navigationBar.shadowImage = UIImage()
        self.navigationController?.navigationBar.backgroundColor = UIColor.clearColor()
        self.navigationController?.navigationBar.translucent = true
        
    }
    
    func showNavigationBar(){
        self.navigationController?.navigationBar.translucent = false
        
    }
    
    
}
